#include<bits/stdc++.h>
#define int long long
#define endl '\n'
using namespace std;
const int mod=998244353,inf=0x3f3f3f3f3f3f3f3f;
int a[200010],sum,n;
signed main()
{
	ios::sync_with_stdio(false);
	cin.tie(0),cout.tie(0);
	freopen("pockets.in","r",stdin);
	freopen("pockets.out","w",stdout);
	cin >> n;
	for ( int i = 1 ; i < n ; i++ )
	{
		cin >> a[i];
		sum+=a[i];
	}
	int q;
	cin >>q;
	while(q--)
	{
		int x;
		cin >> x;
		cout << a[1]+x-(sum-a[1]) << endl;
	}
	return 0;
}//A,14

